# conding = utf-8
from selenium.webdriver.common.by import By

leftmenu_sys = By.XPATH, "//li//span[text()='系统管理']"
leftmenu = By.XPATH, "/html/body/div[1]/section/aside/div/ul/li[10]/ul/li[3]"


#添加机构
add_institution = By.XPATH,"//div[@class='ant-card-body']//button[contains(., '添加机构')]"
#输入名称
first_institution = By.XPATH,"//input[@placeholder='请输入名称']"
#编辑
the_institution = By.XPATH,"//input[@placeholder='请输入编号']"
#关闭
close_isntitution = By.XPATH,"//div[@class='ant-modal-footer']/div/button[1]"
#单击确定
sure_institition = By.XPATH,"//div[@class='ant-modal-footer']/div/button[2]"
#断言
assertion_institition = By.XPATH,"//span[text()='成功']"


#编辑
edit_insti = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div[1]/div[1]/div/div[2]/div[2]/span/ul/li[1]/span[3]"
#输入名称
name_insti = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div[2]/div/div/form/div[1]/div[2]/div/span/input"
#确定
sure_isnit = By.XPATH,"//div[@class='anty-form-btn']/button[2]"
#取消
cancel_insit = By.XPATH,"//div[@class='anty-form-btn']/button[1]"
#结果
assertion_insti = By.XPATH,"//span[text()='保存成功!']"



#删除
#选中
delect_institition = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div[1]/div[1]/div/div[2]/div[2]/span/ul/li[1]/span[2]/span"
#批量删除
batch_institition = By.XPATH,"//div[@class='ant-card-body']//button[contains(., '批量删除')]"
#确定
suret_institition = By.XPATH,"//div[@class='ant-modal-confirm-body-wrapper']/div[2]/button[2]"
#断言
assertionyt_institition = By.XPATH,"//span[text()='成功']"


#树操作
actiontree_ins = By.XPATH,"//div[@class='drawer-bootom-button']/button"
#选择父关系
father_ins = By.XPATH,"//div[@class='ant-dropdown ant-dropdown-placement-topCenter']/ul/li[1]"
#勾选
goxu_ins = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div[1]/div[1]/div/div[2]/div[2]/span/ul/li[1]/span[2]/span"
#取消关联
cancel_ins = By.XPATH,"//div[@class='ant-dropdown ant-dropdown-placement-topCenter']/ul/li[2]"
#全部勾选
all_ins = By.XPATH,"//div[@class='ant-dropdown ant-dropdown-placement-topCenter']/ul/li[3]"
#取消全选
cancele_ins = By.XPATH,"//div[@class='ant-dropdown ant-dropdown-placement-topCenter']/ul/li[4]"
#合并所有
merge_isn = By.XPATH,"//div[@class='ant-dropdown ant-dropdown-placement-topCenter']/ul/li[6]"
#展开所有
expand_all_ins = By.XPATH,"//div[@class='ant-dropdown ant-dropdown-placement-topCenter']/ul/li[5]"